package vistas;

import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JTree;
import javax.swing.ImageIcon;
import javax.swing.JScrollPane;
import javax.swing.JToggleButton;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.event.ChangeListener;
import javax.swing.event.ChangeEvent;

public class TipoIva extends JInternalFrame {
	private JTextField txtGeneral;
	private JTextField txtRed;
	private JTextField txtSuper;
	private JToggleButton tglbtnModificar;


	/**
	 * Create the frame.
	 */
	public TipoIva() {
		setFrameIcon(new ImageIcon(TipoIva.class.getResource("/recursos/IMPUESTOS.png")));
		setIconifiable(true);
		setClosable(true);
		setTitle("Tipos de IVA");
		setBounds(100, 100, 582, 322); 
		getContentPane().setLayout(null);
		
		JPanel pnlBotonera = new JPanel();
		pnlBotonera.setBounds(10, 244, 551, 34);
		getContentPane().add(pnlBotonera);
		
		tglbtnModificar = new JToggleButton("Modificar");
		tglbtnModificar.setIcon(new ImageIcon(TipoIva.class.getResource("/recursos/MODIFICARt.png")));
		pnlBotonera.add(tglbtnModificar);
		
		JButton btnCancelar = new JButton("Cancelar");
		btnCancelar.setIcon(new ImageIcon(TipoIva.class.getResource("/recursos/CANCEL.png")));
		pnlBotonera.add(btnCancelar);
		
		JPanel pnlDatos = new JPanel();
		pnlDatos.setBounds(10, 11, 552, 229);
		getContentPane().add(pnlDatos);
		
		JLabel lblGeneral = new JLabel("Tipo General");
		lblGeneral.setBounds(76, 25, 82, 14);
		
		JLabel lblRed = new JLabel("Tipo Reducido");
		lblRed.setBounds(76, 95, 82, 14);
		
		JLabel lblSuper = new JLabel("Tipo Superreducido");
		lblSuper.setBounds(76, 165, 111, 14);
		
		txtGeneral = new JTextField();
		txtGeneral.setEditable(false);
		txtGeneral.setBounds(190, 21, 86, 20);
		txtGeneral.setHorizontalAlignment(SwingConstants.RIGHT);
		txtGeneral.setText("0.21");
		txtGeneral.setColumns(10);
		
		txtRed = new JTextField();
		txtRed.setEditable(false);
		txtRed.setBounds(190, 92, 86, 20);
		txtRed.setText("0.10");
		txtRed.setHorizontalAlignment(SwingConstants.RIGHT);
		txtRed.setColumns(10);
		pnlDatos.setLayout(null);
		pnlDatos.add(lblSuper);
		pnlDatos.add(lblGeneral);
		pnlDatos.add(lblRed);
		pnlDatos.add(txtRed);
		pnlDatos.add(txtGeneral);
		
		txtSuper = new JTextField();
		txtSuper.setEditable(false);
		txtSuper.setText("0.04");
		txtSuper.setHorizontalAlignment(SwingConstants.RIGHT);
		txtSuper.setColumns(10);
		txtSuper.setBounds(190, 162, 86, 20);
		pnlDatos.add(txtSuper);


	}

}
